package com.dengyuanke.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import com.dengyuanke.entity.enums.BooleanEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("商品实体")
@TableName("tb_goods")
public class Goods extends SuperEntity<Goods> {


    /**
     * 商品名
     */
    @ApiModelProperty("商品名")
	private String name;
    /**
     * 简介
     */
	@ApiModelProperty("简介")
	private String intro;
    /**
     * 详情介绍
     */
	@ApiModelProperty("详情介绍")
	private String details;
    /**
     * 所属分类
     */
	@ApiModelProperty("所属分类")
	@TableField("service_type_id")
	private String serviceTypeId;
    /**
     * 所属分类名称
     */
	@ApiModelProperty("所属分类名称")
	@TableField("service_type_name")
	private String serviceTypeName;
    /**
     * 价格
     */
	@ApiModelProperty("价格")
	private BigDecimal price;
    /**
     * 价格计数单位:d-天，h-小时，m-月，w-周
     */
	@ApiModelProperty("价格计数单位:d-天，h-小时，m-月，w-周")
	private String unit;
	/**
	 * 是否删除 0否1是
	 */
	@ApiModelProperty("否删除 0否1是")
	@TableField("is_del")
	private BooleanEnum del;

	/**
	 * 是否上架 0否1是
	 */
	@ApiModelProperty("是否上架 0否1是")
	@TableField("is_shelving")
	private BooleanEnum shelving;
	/**
	 * 略缩图地址
	 */
	@ApiModelProperty("略缩图地址")
	@TableField("thumb_pic_url")
	private String thumbPicUrl;

	public String getThumbPicUrl() {
		return thumbPicUrl;
	}

	public void setThumbPicUrl(String thumbPicUrl) {
		this.thumbPicUrl = thumbPicUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public String getServiceTypeId() {
		return serviceTypeId;
	}

	public void setServiceTypeId(String serviceTypeId) {
		this.serviceTypeId = serviceTypeId;
	}

	public String getServiceTypeName() {
		return serviceTypeName;
	}

	public void setServiceTypeName(String serviceTypeName) {
		this.serviceTypeName = serviceTypeName;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public BooleanEnum getDel() {
		return del;
	}

	public void setDel(BooleanEnum del) {
		this.del = del;
	}

	public BooleanEnum getShelving() {
		return shelving;
	}

	public void setShelving(BooleanEnum shelving) {
		this.shelving = shelving;
	}
	@Override
	public String toString() {
		return "Goods{" +
				"name='" + name + '\'' +
				", intro='" + intro + '\'' +
				", details='" + details + '\'' +
				", serviceTypeId='" + serviceTypeId + '\'' +
				", serviceTypeName='" + serviceTypeName + '\'' +
				", price=" + price +
				", unit=" + unit +
				", del=" + del +
				", shelving=" + shelving +
				", thumbPicUrl='" + thumbPicUrl + '\'' +
				'}';
	}
}
